﻿using ProjectManageSystemApi.Models;
using System.Collections.Generic;

namespace ProjectManageSystemApi.Services
{
    public interface IProjectItemInfoServices
    {
        bool Insert(ProjectItemInfoDto itemData);
        bool Update(ProjectItemInfoDto itemData, long userId);
        bool Delete(int projectItemId);
        Models.PageVo<List<ProjectItemInfoDto>> GetByProjectId(Models.PageBo<ProjectItemInfoParams> pageBo);
        bool HasExistItemName(int projectId, string itemName, int itemId = 0);
        bool HasExistItemId(int itemId);
        ProjectItemDto GetProjectItemInfoByManager(int itemId);
        ProjectItemDto GetProjectItemInfoByFinancer(int itemId);
        bool Insert(int projectId, List<ProjectItemData> datas, long userId);
    }
}
